jQuery(document).ready(function($){var offset=250,offset_opacity=1200,scroll_top_duration=800,$back_to_top=$('.go-top');$(window).scroll(function(){($(this).scrollTop()>offset)?$back_to_top.show():$back_to_top.hide();});$back_to_top.on('click',function(event){event.preventDefault();$('body,html').animate({scrollTop:0},scroll_top_duration);});});